package com.hospital.rank.module.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hospital.common.pojo.TPostMeta;
import com.hospital.rank.module.entity.DoctorStatEntity;
import com.hospital.rank.module.entity.PostStatEntity;
import com.hospital.rank.module.entity.SectionStatEntity;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

public interface TPostMetaMapper extends BaseMapper<TPostMeta> {
    List<DoctorStatEntity> statDoctorPost(@Param("startTime")LocalDateTime startTime, @Param("endTime")LocalDateTime endTime);
    List<PostStatEntity> statPost(@Param("startTime")LocalDateTime startTime, @Param("endTime")LocalDateTime endTime);
    List<SectionStatEntity> statSection(@Param("startTime")LocalDateTime startTime, @Param("endTime")LocalDateTime endTime);
    List<PostStatEntity> statHotPost();
    List<PostStatEntity> statPostBySectionId(@Param("sectionId")Long sectionId,@Param("startTime")LocalDateTime startTime, @Param("endTime")LocalDateTime endTime);
    List<DoctorStatEntity> statDoctorPostBySectionId(@Param("sectionId")Long sectionId,@Param("startTime")LocalDateTime startTime, @Param("endTime")LocalDateTime endTime);
}